package org.jackysoft.config;

import org.jackysoft.config.ResourceSet;
import org.jackysoft.spring.ActionBeanPostProcessor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfiguration {

	
	 final static Logger  logger = LoggerFactory.getLogger(AppConfiguration.class); 
	 @Bean(name="mappedXml")
	 public ResourceSet mappedXmlResource(){
		 
		 return new ResourceSet("org/jackysoft/resource/WorkflowDescriptor.hbm.xml");
	 }
	 
	 @Bean(name="scannedPackage")
	 public ResourceSet package4Scan(){
		 return new ResourceSet("org.jackysoft.entity");
	 }	
	 
	 @Bean
	 public static ActionBeanPostProcessor actionBeanPostProcessor(){
		 ActionBeanPostProcessor apt = new ActionBeanPostProcessor();
		
		 return apt;
	 }
}
